package com.order.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author
 */
@Table(name = "t_order")
public class Order implements Serializable {
   // 实现java.io.Serializable这个接口是为序列化,serialVersionUID 用来表明实现序列化类的不同版本间的兼容性
	private static final long serialVersionUID = 1L;

	@Column(name = "no")
	private Integer no;

	@Column(name = "name")
	private String name;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Column(name = "date")
	private Date date;

	@Column(name = "status")
	private Integer status;

	@Column(name = "address")
	private String address;

 
	public void setNo(Integer no) {
		this.no = no;
	}

	public Integer getNo() {
		return no;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Date getDate() {
		return date;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStatus() {
		return status;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getAddress() {
		return address;
	}

}
